package dang.servlet;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;

import org.apache.log4j.PropertyConfigurator;

public class Log4jFileServlet extends HttpServlet{
	
	@Override
	public void init() throws ServletException {
		String path=getServletContext().getRealPath("");
		String filename=path+getInitParameter("filepath");
		System.out.println("jjjjjjjjjjjjjjjjj");
		System.out.println(filename);
		PropertyConfigurator.configure(filename);
	}
}
